<?xml version="1.0" encoding="utf-8" ?>

<!--

  NIGHTMARE - 0,
	MAGIC_BEANS - 1,
	DREAM - 2

-->

<level type="3">
  <meta score="0" buttonPrice="10"></meta>
  <bear maxHealth="100" startPosition="300" velocity="8.0" damage="11" criticalDamage="20" defaultAmmo="100" />

  <!--OT_CLOUD = 0,
  OT_SPIKE_NIGHTMARE_LARGE = 1,
  OT_SPIKE_NIGHTMARE_MEDIUM = 2,
  OT_SPIKE_NIGHTMARE_SMALL = 3,
  OT_BEAN_A = 4,
  OT_BEAN_B = 5,
  OT_BEAN_C = 6,
  OT_BEAN_D = 7,
  OT_BEAN_E = 8-->

  <!--
  MAGIC BEAN LEVEL MARGIN
  Since the beanstalks are made in such a way that those can be only placed on the side of the screen, here are the positioning
  coordinates for them:
  
  OT_BEAN_A: 269.5 (Left) 498.5 (Right, with 3.14 rotation)
  OT_BEAN_B: 128.5 (left) 638.5 (Right, with 3.14 rotation)
  OT_BEAN_C: 172 (left) 596 (Right, with 3.14 rotation)
  OT_BEAN_D: 188.5 (left) 579.5 (Right, with 3.14 rotation)
  OT_BEAN_E: 206.5 (left) 561.5 (Right, with 3.14 rotation)
  -->

  <obstacles>
    <obstacle type="9" x="119" y="1000" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="9" x="500" y="2000" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="9" x="100" y="3000" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="9" x="580" y="4000" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="10" x="100" y="5000" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="10" x="690" y="5000" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="12" x="420" y="5700" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="10" x="100" y="6400" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="10" x="690" y="6400" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="10" x="320" y="7210" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="13" x="320" y="7000" inflictsDamage="true" healthDamage="5" rotation="0" scale=".6" />
    <obstacle type="10" x="380" y="8000" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1.3" />

    <obstacle type="11" x="180" y="8600" inflictsDamage="true" healthDamage="5" rotation="0" scale=".6" />
    <obstacle type="9" x="500" y="9200" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="580" y="9800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="13" x="380" y="11000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="11" x="180" y="11800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="11" x="580" y="11800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="120" y="12000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="640" y="12000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="14" x="280" y="12900" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="11" x="180" y="13700" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="11" x="580" y="13700" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="120" y="13900" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="640" y="13900" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="9" x="500" y="14700" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="14" x="210" y="15400" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="11" x="180" y="16000" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="10" x="500" y="16800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="12" x="180" y="17500" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="9" x="240" y="18700" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="13" x="400" y="19600" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="12" x="600" y="21400" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="10" x="210" y="22000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="100" y="22700" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="12" x="300" y="23300" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="11" x="305" y="23900" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="10" x="312" y="24700" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="12" x="434" y="25900" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="11" x="212" y="26700" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="9" x="120" y="27400" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="12" x="500" y="28000" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="11" x="450" y="29000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="13" x="320" y="29800" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="14" x="100" y="30200" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="9" x="455" y="31000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="12" x="646" y="31800" inflictsDamage="true" healthDamage="5" rotation="0.7" scale="1" />
    <obstacle type="10" x="320" y="32600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="11" x="120" y="33200" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="10" x="120" y="33800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="640" y="33800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="120" y="34600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="640" y="34600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="120" y="35400" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="640" y="35400" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="120" y="36200" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="640" y="36200" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
  </obstacles>

  <!--
  
  MT_NIGHTMARE_A = 0,
	MT_NIGHTMARE_B = 1,
	MT_NIGHTMARE_C = 2,
	MT_MAGICBEAN_A = 3,
	MT_MAGICBEAN_B = 4,
	MT_MAGICBEAN_C = 5,
	MT_CANDYLAND_A = 6,
	MT_CANDYLAND_B = 7,
	MT_CANDYLAND_C = 8,
	MT_CANDYLAND_D = 9,
	MT_CANDYLAND_E = 10
  
  -->

  <monsters>
    <monster lifetime="3500" scale=".3" velocityX="2" velocityY="2" type="1" x="460" y="3000" maxHealth="100" bonus="100" lives="0" damage="17" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".3" velocityX="2" velocityY="2" type="2" x="460" y="7800" maxHealth="100" bonus="100" lives="0" damage="17" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".3" velocityX="2" velocityY="2" type="3" x="460" y="14000" maxHealth="100" bonus="100" lives="0" damage="17" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".3" velocityX="2" velocityY="2" type="4" x="460" y="22000" maxHealth="100" bonus="100" lives="0" damage="17" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".3" velocityX="2" velocityY="2" type="5" x="460" y="26000" maxHealth="100" bonus="100" lives="0" damage="17" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".3" velocityX="2" velocityY="2" type="6" x="460" y="31000" maxHealth="100" bonus="100" lives="0" damage="17" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".3" velocityX="2" velocityY="2" type="7" x="460" y="36000" maxHealth="100" bonus="100" lives="0" damage="17" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="5000" scale=".5" velocityX="2" velocityY="2" type="9" x="460" y="40000" maxHealth="380" bonus="100" lives="0" damage="17" criticalDamage="8" defaultAmmo="50" />
  </monsters>


  <buttons>
    <button x="500" y="1200" />
    <button x="500" y="1260" />
    <button x="500" y="1320" />
    <button x="500" y="1380" />
    <button x="500" y="1440" />

    <button x="200" y="1800" />
    <button x="200" y="1860" />
    <button x="200" y="1920" />
    <button x="200" y="1980" />
    <button x="200" y="2040" />

    <button x="200" y="2200" />
    <button x="200" y="2260" />
    <button x="200" y="2320" />
    <button x="200" y="2380" />
    <button x="200" y="2440" />

    <button x="340" y="2900" />
    <button x="400" y="2960" />
    <button x="460" y="3020" />
    <button x="520" y="3080" />
    <button x="580" y="3140" />
    <button x="520" y="3200" />
    <button x="460" y="3260" />
    <button x="400" y="3320" />
    <button x="340" y="3380" />
    <button x="280" y="3440" />

    <button x="220" y="3560" />
    <button x="220" y="3620" />
    <button x="220" y="3680" />
    <button x="220" y="3740" />
    <button x="220" y="3800" />

    <button x="220" y="4000" />
    <button x="220" y="4060" />
    <button x="220" y="4120" />
    <button x="220" y="4180" />
    <button x="220" y="4240" />

    <button x="220" y="4440" />
    <button x="220" y="4500" />
    <button x="220" y="4560" />
    <button x="220" y="4620" />
    <button x="220" y="4680" />

    <button x="360" y="5000" />
    <button x="360" y="5060" />
    <button x="360" y="5120" />
    <button x="360" y="5180" />
    <button x="360" y="5240" />

    <button x="360" y="6400" />
    <button x="360" y="6460" />
    <button x="360" y="6520" />
    <button x="360" y="6580" />
    <button x="360" y="6640" />

    <button x="360" y="8600" />
    <button x="360" y="8660" />
    <button x="360" y="8720" />
    <button x="360" y="8780" />
    <button x="360" y="8840" />

    <button x="260" y="9500" />
    <button x="260" y="9560" />
    <button x="260" y="9620" />
    <button x="260" y="9680" />
    <button x="260" y="9740" />
    <button x="260" y="9800" />
    <button x="260" y="9860" />
    <button x="260" y="9920" />
    <button x="260" y="9980" />
    <button x="260" y="10040" />
    <button x="260" y="10100" />
    <button x="260" y="10160" />
    <button x="260" y="10220" />
    <button x="260" y="10280" />
    <button x="260" y="10340" />
    <button x="260" y="10400" />
    <button x="260" y="10460" />
    <button x="260" y="10520" />
    <button x="260" y="10580" />
    <button x="260" y="10640" />

    <button x="360" y="12000" />
    <button x="360" y="12060" />
    <button x="360" y="12120" />
    <button x="360" y="12180" />
    <button x="360" y="12240" />

    <button x="500" y="13000" />
    <button x="500" y="13060" />
    <button x="500" y="13120" />
    <button x="500" y="13180" />
    <button x="500" y="13240" />

    <button x="380" y="13600" />
    <button x="380" y="13660" />
    <button x="380" y="13720" />
    <button x="380" y="13780" />
    <button x="380" y="13840" />

    <button x="160" y="14500" />
    <button x="220" y="14560" />
    <button x="160" y="14620" />
    <button x="220" y="14680" />
    <button x="160" y="14740" />
    <button x="220" y="14800" />
    <button x="160" y="14860" />
    <button x="220" y="14920" />
    <button x="160" y="14980" />
    <button x="220" y="15040" />

    <button x="400" y="15500" />
    <button x="460" y="15560" />
    <button x="400" y="15620" />
    <button x="460" y="15680" />
    <button x="400" y="15740" />
    <button x="460" y="15800" />
    <button x="400" y="15860" />
    <button x="460" y="15920" />
    <button x="400" y="15980" />
    <button x="460" y="16040" />

    <button x="160" y="16400" />
    <button x="220" y="16460" />
    <button x="160" y="16520" />
    <button x="220" y="16580" />
    <button x="160" y="16640" />
    <button x="220" y="16700" />
    <button x="160" y="16760" />
    <button x="220" y="16820" />
    <button x="160" y="16880" />
    <button x="220" y="16940" />

    <button x="500" y="17400" />
    <button x="560" y="17460" />
    <button x="500" y="17520" />
    <button x="560" y="17580" />
    <button x="500" y="17640" />
    <button x="560" y="17700" />
    <button x="500" y="17760" />
    <button x="560" y="17820" />
    <button x="500" y="17880" />
    <button x="560" y="17940" />

    <button x="500" y="18400" />
    <button x="560" y="18460" />
    <button x="500" y="18520" />
    <button x="560" y="18580" />
    <button x="500" y="18640" />
    <button x="560" y="18700" />
    <button x="500" y="18760" />
    <button x="560" y="18820" />
    <button x="500" y="18880" />
    <button x="560" y="18940" />

    <button x="500" y="20000" />
    <button x="440" y="20060" />
    <button x="380" y="20120" />
    <button x="320" y="20180" />
    <button x="260" y="20240" />
    <button x="200" y="20300" />
    <button x="140" y="20360" />
    <button x="200" y="20420" />
    <button x="260" y="20480" />
    <button x="320" y="20540" />
    <button x="380" y="20600" />
    <button x="440" y="20660" />
    <button x="500" y="20720" />
    <button x="560" y="20780" />
    <button x="500" y="20840" />
    <button x="440" y="20900" />
    <button x="380" y="20960" />
    <button x="320" y="21020" />
    <button x="260" y="21080" />
    <button x="200" y="21140" />
    <button x="140" y="21200" />
    <button x="200" y="21260" />
    <button x="260" y="21320" />
    <button x="320" y="21380" />
    <button x="380" y="21440" />
    <button x="440" y="21500" />
    <button x="500" y="21560" />
    <button x="560" y="21620" />

    <button x="500" y="22400" />
    <button x="560" y="22460" />
    <button x="500" y="22520" />
    <button x="560" y="22580" />
    <button x="500" y="22640" />
    <button x="560" y="22700" />
    <button x="500" y="22760" />
    <button x="560" y="22820" />
    <button x="500" y="22880" />
    <button x="560" y="22940" />

    <button x="500" y="23400" />
    <button x="560" y="23460" />
    <button x="500" y="23520" />
    <button x="560" y="23580" />
    <button x="500" y="23640" />
    <button x="560" y="23700" />
    <button x="500" y="23760" />
    <button x="560" y="23820" />
    <button x="500" y="23880" />
    <button x="560" y="23940" />

    <button x="360" y="25000" />
    <button x="360" y="25060" />
    <button x="360" y="25120" />
    <button x="360" y="25180" />
    <button x="360" y="25240" />
    <button x="360" y="25300" />
    <button x="360" y="25360" />
    <button x="360" y="25420" />
    <button x="360" y="25480" />
    <button x="360" y="25540" />

    <button x="500" y="26400" />
    <button x="440" y="26460" />
    <button x="500" y="26520" />
    <button x="440" y="26580" />
    <button x="500" y="26640" />
    <button x="440" y="26700" />
    <button x="500" y="26760" />
    <button x="440" y="26820" />
    <button x="500" y="26880" />
    <button x="440" y="26940" />

    <button x="500" y="27400" />
    <button x="440" y="27460" />
    <button x="500" y="27520" />
    <button x="440" y="27580" />
    <button x="500" y="27640" />
    <button x="440" y="27700" />

    <button x="200" y="28500" />
    <button x="240" y="28560" />
    <button x="200" y="28620" />
    <button x="240" y="28680" />
    <button x="200" y="28740" />
    <button x="240" y="28800" />
    <button x="200" y="28860" />
    <button x="240" y="28920" />
    <button x="200" y="28980" />
    <button x="240" y="29040" />

    <button x="600" y="29500" />
    <button x="640" y="29560" />
    <button x="600" y="29620" />
    <button x="640" y="29680" />
    <button x="600" y="29740" />
    <button x="640" y="29800" />
    <button x="600" y="29860" />

    <button x="600" y="30300" />
    <button x="640" y="30360" />
    <button x="600" y="30420" />
    <button x="640" y="30480" />
    <button x="600" y="30540" />
    <button x="640" y="30600" />
    <button x="600" y="30660" />

    <button x="200" y="31800" />
    <button x="260" y="31860" />
    <button x="320" y="31920" />
    <button x="380" y="31980" />
    <button x="440" y="32040" />
    <button x="500" y="32100" />
    <button x="560" y="32160" />

    <button x="600" y="32400" />
    <button x="640" y="32460" />
    <button x="600" y="32520" />
    <button x="640" y="32580" />
    <button x="600" y="32640" />
    <button x="640" y="32700" />
    <button x="600" y="32760" />

    <button x="360" y="33800" />
    <button x="360" y="33860" />
    <button x="360" y="33920" />
    <button x="360" y="33980" />
    <button x="360" y="34040" />
    <button x="360" y="34100" />
    <button x="360" y="34160" />

    <button x="360" y="34400" />
    <button x="360" y="34460" />
    <button x="360" y="34520" />
    <button x="360" y="34580" />
    <button x="360" y="34640" />
    <button x="360" y="34700" />
    <button x="360" y="34760" />

    <button x="360" y="35400" />
    <button x="360" y="35460" />
    <button x="360" y="35520" />
    <button x="360" y="35580" />
    <button x="360" y="35640" />
    <button x="360" y="35700" />
    <button x="360" y="35760" />

    <button x="360" y="36400" />
    <button x="360" y="36460" />
    <button x="360" y="36520" />
    <button x="360" y="36580" />
    <button x="360" y="36640" />
    <button x="360" y="36700" />
    <button x="360" y="36760" />
  </buttons>

  <!--
  
  Powerup Categories:
  1 - Good
  0 - Bad
  
  Powerup Types:
  HEALTH = 0,
  HELMET = 1,
  PARACHUTE = 2,
  BUBBLE = 3,
  CAPE = 4,
  AXE = 5,
  BOOMERANG = 6,
  HAMMER = 7,
  KNIFE = 8,
  PLASMA_BALL = 9
  
  -->
  <powerups>
    <powerup category="1" type="0" x="200" y="9000" effect="99" lifespan="2"></powerup>
    <powerup category="1" type="8" x="360" y="13300" effect="15" lifespan="2"></powerup>
    <powerup category="1" type="3" x="360" y="23000" effect="9999" lifespan="6"></powerup>
    <powerup category="1" type="0" x="430" y="29300" effect="9999" lifespan="6"></powerup>
    <powerup category="1" type="4" x="360" y="33500" effect="4" lifespan="2"></powerup>
  </powerups>
</level>